import { ADD_PERSON } from '../contents'
export default function personReduer (state = [], action) {
  const { type, data } = action
  if (type === ADD_PERSON) {
    return [...state, data]
  }else {
    return state
  }
}